package com.example.boot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Calendar;

/**
 * Created by
 *
 * @author dw
 * @date 2018/04/17
 */
@RestController
public class BookController {
    @GetMapping("/hi")
    public String hi() {
        return "hi";
    }

    @GetMapping("/time")
    public String time() {
        return Calendar.getInstance().getTime().toGMTString();
    }
}
